'''
Created on Jun 7, 2012

@author: nzhao
'''
from enthought.traits.api import *
from enthought.traits.ui.api import *
from enthought.enable.component_editor import ComponentEditor
from enthought.chaco.api import HPlotContainer, VPlotContainer, BasePlotContainer, marker_trait, Plot, ArrayPlotData
import numpy as np


class proj(HasTraits):
    '''
    classdocs
    '''
    spinType = Enum("E", "C13", "N14", "N15")
    spinPos  = Str('[ 0.0, 0.0, 0.0]')
    addSpin  = Button()
    spinList = Array()#float,(1,3),[[ 0.0, 0.0, 0.0]])
    traits_view = View(
                       Group(
                             HGroup(
                                    Item('spinType', label="Spin Type"),
                                    Item('spinPos', label="Spin Position", width=500),
                                    Item('addSpin', label="Add Spin")
                                    ),
                             VGroup(
                                    Item('spinList', show_label=False,style='readonly')
                                    )
                             ),
                       title='Spin Problem',width = 1300, height = 600, resizable = True
                       )


    def __init__(self):
        '''
        Constructor
        '''
        super(proj, self).__init__()

if __name__ == "__main__":
    project=proj()
    project.configure_traits()    